<template>
  <div>
    <div class="message-board">
      <el-card v-for="(message, index) in messages" :key="index" class="message-item">
        <div slot="header" class="message-header">
          <span class="visitor-name">姓名：{{ message.name }}</span>
          <span class="visitor-email">邮箱：{{ message.email }}</span>
          <span class="message-time">留言时间：{{ message.time }}</span>
        </div>
        <div class="message-content">留言内容：{{ message.content }}</div>
        <div class="admin-reply">

          <!-- <el-input type="textarea" placeholder="请输入回复内容" class="admin-reply-input"></el-input> -->
          <el-input type="textarea" :rows="2" placeholder="请输入内容" class="admin-reply-input" v-model="textarea">
          </el-input>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HotelSystemAdminAdminReply',

  data () {
    return {

    }
  },

  mounted () {

  },

  methods: {

  }
}
</script>

<style lang="less" scoped>
.message-board {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.message-item {
  margin-bottom: 20px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #f5f7fa;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.visitor-name {
  font-weight: bold;
  margin-right: 10px;
}

.visitor-email {
  margin-right: 10px;
  color: #97a8be;
}

.message-time {
  color: #97a8be;
}

.message-content {
  padding: 10px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.admin-reply {
  margin-top: 10px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}

.admin-reply-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #f5f7fa;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.admin-reply-time {
  color: #97a8be;
}

.admin-reply-input {
  width: 100%;
  border: 0;
  border-top: 1px solid #ebeef5;
  border-radius: 0;
  padding: 10px;
  resize: none;
  font-size: 14px;
}
</style>
